<template>
  <div>
    <el-button type="primary" @click="addPage">新增</el-button>
    <el-button type="primary" @click="editPage">编辑</el-button>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>
<script>
  export default {
    methods: {
      addPage() {
        this.$router.push({
          name: 'addPage'
        })
      },
      editPage() {
        this.$router.push({
          name: 'editPage'
        })
      }
    }
  }
</script>
